package xyz.xtt;

import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author huqibo
 */

@Import(value = {RocketMQAutoConfiguration.class})
@SpringBootApplication
@EnableAsync
@MapperScan("xyz.xtt.user.mapper")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.tongtong.middleware", "xyz.xtt.*.client"})
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
